package com.xjrsoft.module.visual.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xjrsoft.module.visual.entity.XjrVisualConfig;
import com.xjrsoft.module.visual.mapper.XjrVisualConfigMapper;
import com.xjrsoft.module.visual.service.IXjrVisualConfigService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 可视化配置表 服务实现类
 * </p>
 *
 * @author jobob
 * @since 2020-12-19
 */
@Service
public class XjrVisualConfigServiceImpl extends ServiceImpl<XjrVisualConfigMapper, XjrVisualConfig> implements IXjrVisualConfigService {


    @Override
    public XjrVisualConfig getByVisualId(String id) {
        QueryWrapper<XjrVisualConfig> queryWrapper = new QueryWrapper();
        queryWrapper.lambda().eq(XjrVisualConfig::getVisualId, id);
        return baseMapper.selectOne(queryWrapper);
    }
}
